package com.motion.design.decor;

public class Client {

    public static void main(String[] args) {
        //装饰模式之前
        Component component = new ConcreteComponent();
        component.operation();

        System.out.println("================================");
        //运用装饰模式之后
        Component decorComponent = new ConcreteDecor(component);
        decorComponent.operation();

    }
}
